package com.qhhc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qhhc.entity.CarPhoto;

import java.util.List;

public interface CarPhotoService extends IService<CarPhoto> {
    List<CarPhoto> getPhotosByCarId(Long carId);
    boolean setMainPhoto(Long photoId, Long carId);
    boolean deletePhoto(Long photoId);
    boolean updatePhotoSort(Long photoId, Integer sortOrder);

    List<CarPhoto> getAllMainPhoto();
}